Python capitalize first letter of string without changing the rest

45

string[0].upper() + string[1:]

Comments

Submit
0 Comments